package com.settlement.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.settlement.system.model.entity.SysBillLock;
import com.settlement.system.model.form.BillLockForm;
import com.settlement.system.model.query.BillLockPageQuery;

import java.util.List;

/**
 * <p>
 * 核销锁账表 服务类
 * </p>
 *
 * @author huangrensen
 * @since 2023-08-25
 */
public interface SysBillLockService extends IService<SysBillLock> {
    /**
     * 核销锁账分页列表
     *
     * @return
     */
    Page<SysBillLock> getBillLockPage(BillLockPageQuery queryParams);


    /**
     * 获取核销锁账表单数据
     *
     * @param billLockId
     * @return
     */
    SysBillLock getBillLockFormData(Long billLockId);


    /**
     * 保存核销锁账
     *
     * @param billLockForm 核销锁账表单对象
     * @return
     */
    boolean saveBillLock(BillLockForm billLockForm);

    /**
     * 删除核销锁账
     *
     * @param idsStr 核销锁账ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteBillLock(String idsStr);

    boolean deleteByCodeList(List<String> codeList);
}
